package com.encryption.rpc.model
{
	import com.encryption.util.DateFormatUtil;

	[RemoteClass(alias="com.encryption.model.User")]
	public class User
	{
		public var id:int;
		public var role:int;
		public var department:int;
		public var loginName:String;
		public var password:String;
		public var realName:String;
		public var mobile:String;
		public var email:String;
		public var post:String;
		public var aduitState:int;
		public var registerTime:Date;
		public var lastLogin:Date;
		public var fileLevel:int;
		
		public var applyCert:Boolean;
		
		public var selected:Boolean = false;
		
		public function User()
		{
		}
		
		public function get name():String{
			return toString();
		}
		
		public function toString():String
		{
			return realName + "("+ loginName + ")";
		}
		
		public function get formatRegTime():String
		{
			return DateFormatUtil.commonFormat(registerTime);
		}
	}
}